package com.api.shopapi.service;

import com.api.shopapi.entity.CartBusiness;
import com.api.shopapi.entity.CashierCartBusiness;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface CashierCartBusinessService {

    int insert(CashierCartBusiness cashierCartBusiness);

    int update(CashierCartBusiness cashierCartBusiness);

    int delete(String cashierCartBusinessCode);

    List<CashierCartBusiness> getList();

    List<CashierCartBusiness> getListByCashierCartCode(String cashierCartCode);

    List<CashierCartBusiness> getListByCashierCartCodeWillSubmit(String cashierCartCode);

    CashierCartBusiness getByCashierCartBusinessCode(String cashierCartBusinessCode);

    CashierCartBusiness getByBusinessCodeUserCodeWillSubmit(String businessCode, String userCode);

    List<CashierCartBusiness> getListByBusinessCodeUserCodeWaitSubmit(String businessCode, String userCode);

}
